import service from "../utils/request";
/**
 * 获取邮箱验证码接口
 */
export function GetEmail(data) {
  return service.request({
    method: "post",
    url: "/common/email",
    data
  });
}

/**
 * 获取图形验证码接口
 */
export function GetCaptcha() {
  return service.request({
    method: "get",
    url: "/common/captcha",
    params: {
      type: "base64"
    }
  });
}

/**
 * 获取用户角色
 * */

/**
 * 登录
 */
export function Login(data) {
  return service.request({
    method: "post",
    url: "/user/login",
    data
  });
}

/**
 * 注册
 */
export function Register(data) {
  return service.request({
    method: "post",
    url: "/user/register",
    data
  });
}

/**
 * 获取用户角色
 * */

export function getUserRole(data={}){
  //
}
